package com.company;

class Box<T>{
    private  T content;



    public  T getContent(){
        return  content;
    }
    public void  setContent(T content){
        this.content=content;
    }
}

public class TDemo {
    public static void main(String[] args) {
        Box<String> box=new Box<String>();
        box.setContent("hello!");
        String content =box.getContent();
        System.out.println(content);
        //
        Box<Integer>box1=new Box<>();
        box1.setContent(45);
        Integer content1=box1.getContent();
        System.out.println(content1);
        //
        Box<Integer>box2=new Box<>();
        box2.setContent(99);
        Integer content2=box2.getContent();
        System.out.println(content2);
    }
}
